package miiteen.customsportal.basic.beans;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;

import miiteen.common.json.jackson.LongSerialize;
import miiteen.common.utils.FieldMeta;
import miiteen.sys.base.bean.BasePo;

/**
 * Name: CustomsPortal_Basic_BrowsingHistory
 * Des: -Bean
 * Author: lx
 * Date: 2020-07-17
 */
@ApiModel("浏览记录")
public class BasicBrowsingHistory extends BasePo {


    @FieldMeta(name = "id")
    private long id;

    @FieldMeta(name = "类别ID(2001:影视信息、2002:信息动态、2003:重要新闻、2004:概况信息、2005:光荣榜)")
    @ApiModelProperty(value = "类别ID(2001:影视信息、2002:信息动态、2003:重要新闻、2004:概况信息、2005:光荣榜)",example = "0")
    private long typeId;

    @FieldMeta(name = "信息动态类别ID")
    @ApiModelProperty(value = "信息动态类别ID")
    private long ctNoticeTypeId;



    @FieldMeta(name = "浏览内容ID")
    @ApiModelProperty(value = "浏览内容ID",example = "0")
    private long browseId;

    @FieldMeta(name = "内部页面ID")
    @ApiModelProperty(value = "内部页面ID")
    private String interiorId;

    @FieldMeta(name = "浏览IP地址")
    @ApiModelProperty(value = "浏览IP地址")
    private String iPAddress;

    @FieldMeta(name = "浏览人员ID")
    @ApiModelProperty(value = "浏览人员ID",example = "0")
    private String scannerId;

    @FieldMeta(name = "浏览人员姓名")
    @ApiModelProperty(value = "浏览人员姓名")
    private String scanner;

    @FieldMeta(name = "浏览时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "浏览时间")
    private Date scannerTime;

    @FieldMeta(name = "评论")
    private String comment;

    @FieldMeta(name = "是否点赞")
    private int isLike;

    @FieldMeta(name = "是否点踩")
    private int isDisLike;

    @FieldMeta(name = "删除状态")
    private int delState;

    /*
    添加字段
     */
    @FieldMeta(name = "标题")
    private String title;

    @FieldMeta(name = "浏览次数")
    private int number;

    @FieldMeta(name = "类别名称")
    private String typeName;

    @FieldMeta(name = "接口类型")
    @ApiModelProperty(value = "接口类型，内部：0，外部：1",example = "0")
    private int ifMod;

    @FieldMeta(name = "信息动态名称")
    private String ctNoticeTypeName;

    @FieldMeta(name = "当日览数")
    @ApiModelProperty(value = "总浏览数",example = "0")
    private int dayNumber;

    @FieldMeta(name = "总浏览数")
    @ApiModelProperty(value = "总浏览数",example = "0")
    private int allNumber;

    @JsonSerialize(using = LongSerialize.class)
    public long getId() {
        return this.id;
    }

    public void setId(long value) {
        this.id = value;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getTypeId() {
        return this.typeId;
    }

    public void setTypeId(long value) {
        this.typeId = value;
    }


    public long getCtNoticeTypeId() {
        return ctNoticeTypeId;
    }

    public void setCtNoticeTypeId(long ctNoticeTypeId) {
        this.ctNoticeTypeId = ctNoticeTypeId;
    }

    public String getiPAddress() {
        return iPAddress;
    }

    public void setiPAddress(String iPAddress) {
        this.iPAddress = iPAddress;
    }

    @JsonSerialize(using = LongSerialize.class)
    public long getBrowseId() {
        return this.browseId;
    }

    public void setBrowseId(long value) {
        this.browseId = value;
    }

    public String getIPAddress() {
        return this.iPAddress;
    }

    public void setIPAddress(String value) {
        this.iPAddress = value;
    }

    public String getScannerId() {
        return this.scannerId;
    }

    public void setScannerId(String value) {
        this.scannerId = value;
    }

    public String getScanner() {
        return this.scanner;
    }

    public void setScanner(String value) {
        this.scanner = value;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    public Date getScannerTime() {
        return this.scannerTime;
    }

    public void setScannerTime(Date value) {
        this.scannerTime = value;
    }

    public String getComment() {
        return this.comment;
    }

    public void setComment(String value) {
        this.comment = value;
    }

    public int getIsLike() {
        return this.isLike;
    }

    public void setIsLike(int value) {
        this.isLike = value;
    }

    public int getIsDisLike() {
        return this.isDisLike;
    }

    public void setIsDisLike(int value) {
        this.isDisLike = value;
    }

    public int getDelState() {
        return this.delState;
    }

    public void setDelState(int value) {
        this.delState = value;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getIfMod() {
        return ifMod;
    }

    public void setIfMod(int ifMod) {
        this.ifMod = ifMod;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public String getCtNoticeTypeName() {
        return ctNoticeTypeName;
    }

    public void setCtNoticeTypeName(String ctNoticeTypeName) {
        this.ctNoticeTypeName = ctNoticeTypeName;
    }

    public String getInteriorId() {
        return interiorId;
    }

    public void setInteriorId(String interiorId) {
        this.interiorId = interiorId;
    }

    public int getDayNumber() {
        return dayNumber;
    }

    public void setDayNumber(int dayNumber) {
        this.dayNumber = dayNumber;
    }

    public int getAllNumber() {
        return allNumber;
    }

    public void setAllNumber(int allNumber) {
        this.allNumber = allNumber;
    }
}